package com.test.pattern.prototype.test;

/**
 * @program: shejimoshi
 * @ClassName: Citation
 * @description: 三好学生类
 * @author: Mr du
 * @create: 2024-02-17 16:56
 */
public class Citation implements Cloneable{

    /*private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }*/

    private Student stu;

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }

    public void show() {
        System.out.println(stu.getName() + "同学：在2023学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
